//---------------------------------------------------------------------------
#ifndef MainFormH
#define MainFormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <ComCtrls.hpp>
#include <ImgList.hpp>
#include <Buttons.hpp>
#include "cspin.h"
#include <Dialogs.hpp>
#include "PetryNetClass.h"
#include "ColoredPetryNetClass.h"
#include <fstream.h>
#include <Grids.hpp>
#include <msxmldom.hpp>
#include <XMLDoc.hpp>
#include <xmldom.hpp>
#include <XMLIntf.hpp>
#include <OleCtrls.hpp>
#include <SHDocVw.hpp>
#include "SHDocVw_OCX.h"
//---------------------------------------------------------------------------
class TMF : public TForm {
__published: //IDE-managed Components
	TPageControl *PC;
	TTabSheet *Menu;
	TTabSheet *Position;
	TTabSheet *Transition;
	TTabSheet *Arc;
	TPanel *FOp;
	TGroupBox *Opf;
	TPanel *FEd;
	TGroupBox *Ed;
	TImageList *IL;
	TComboBox *OperationsCB;
	TButton *ExitB;
	TButton *SaveB;
	TButton *OpenB;
	TButton *SettingsB;
	TTrackBar *ScaleTB;
	TLabel *Label1;
	TButton *UndoB;
	TButton *RedoB;
	TButton *HelpB;
	TButton *NewB;
	TPanel *POp;
	TGroupBox *Opp;
	TComboBox *POperationsCB;
	TButton *AddMB;
	TButton *AddPB;
	TButton *DelPB;
	TPanel *PMa;
	TGroupBox *Ma;
	TComboBox *PositionCB;
	TLabel *Label2;
	TLabel *Label3;
	TCSpinEdit *CountPSE;
	TButton *SettingsPB;
	TPanel *TOp;
	TGroupBox *Opt;
	TComboBox *TOperationsCB;
	TButton *AddTB;
	TButton *DelTB;
	TPanel *TFo;
	TGroupBox *Fo;
	TLabel *Label4;
	TComboBox *TransitionCB;
	TButton *SettingsTB;
	TButton *Form;
	TPanel *AOp;
	TGroupBox *Opa;
	TComboBox *AOperationsCB;
	TButton *AddAB;
	TButton *DelAB;
	TPanel *APi;
	TGroupBox *Pi;
	TLabel *Label5;
	TComboBox *PivotsCB;
	TButton *DefaultB;
	TButton *SelAB;
	TSaveDialog *SD;
	TOpenDialog *OD;
	TTabSheet *PetryNet;
	TPanel *Func;
	TGroupBox *Fu;
	TButton *StepF;
	TButton *Stop;
	TButton *Play;
	TButton *Down;
	TButton *Up;
	TEdit *TimeE;
	TTimer *Timer;
	TButton *ColorB;
	TButton *NewColorB;
	TButton *SettingsCPB;
	TPanel *ARu;
	TGroupBox *Ru;
	TButton *ChangeB;
	TScrollBox *SB;
	TScrollBox *ISB;
	TImage *I;
	TPanel *Prop;
	TGroupBox *Pro;
	TButton *Analys;
	TCheckBox *Koncer;
	TCheckBox *Zhivos;
	TCheckBox *Ogran;
	TCheckBox *Bezop;
	TPanel *Tupik;
	TGroupBox *Tup;
	TListBox *TupLB;
	void __fastcall FormShow(TObject *Sender);
	void __fastcall IMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
	void __fastcall AddPBClick(TObject *Sender);
	void __fastcall AddTBClick(TObject *Sender);
	void __fastcall AddABClick(TObject *Sender);
	void __fastcall IMouseUp(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
	void __fastcall ScaleTBChange(TObject *Sender);
	void __fastcall IMouseMove(TObject *Sender, TShiftState Shift, int X, int Y);
	void __fastcall DefaultBClick(TObject *Sender);
	void __fastcall PCChange(TObject *Sender);
	void __fastcall ExitBClick(TObject *Sender);
	void __fastcall PositionCBChange(TObject *Sender);
	void __fastcall CountPSEKeyPress(TObject *Sender, wchar_t &Key);
	void __fastcall CountPSEChange(TObject *Sender);
	void __fastcall FormClick(TObject *Sender);
	void __fastcall TransitionCBChange(TObject *Sender);
	void __fastcall POperationsCBSelect(TObject *Sender);
	void __fastcall TOperationsCBSelect(TObject *Sender);
	void __fastcall SettingsBClick(TObject *Sender);
	void __fastcall OperationsCBChange(TObject *Sender);
	void __fastcall PivotsCBChange(TObject *Sender);
	void __fastcall SaveBClick(TObject *Sender);
	void __fastcall OpenBClick(TObject *Sender);
	void __fastcall NewBClick(TObject *Sender);
	void __fastcall TimerTimer(TObject *Sender);
	void __fastcall PlayClick(TObject *Sender);
	void __fastcall NewColorBClick(TObject *Sender);
	void __fastcall HelpBClick(TObject *Sender);
	void __fastcall ColorBClick(TObject *Sender);
	void __fastcall SettingsCPBClick(TObject *Sender);
	void __fastcall ChangeBClick(TObject *Sender);
	void __fastcall AnalysClick(TObject *Sender);
private: //User declarations
	int xb, yb;
	int objn;
	UnicodeString filename;
	bool ColoredNet;
public: //User declarations
	CPetryNet* pn;
	CColoredPetryNet* cpn;
	__fastcall TMF(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TMF *MF;
//---------------------------------------------------------------------------
#endif
